Skip to content

[DO-NOT-MERGE][Warp] Warp cleanup series: all parts combined for review - #8861

Draft
hujc7 wants to merge 161 commits into
isaac-sim:mainfrom
hujc7:jichuanh/warp-cleanup-lump
Draft

hujc7 wants to merge 161 commits into
isaac-sim:mainfrom
hujc7:jichuanh/warp-cleanup-lump

Conversation

@hujc7

@hujc7 hujc7 commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Topology

Snapshot 2026-11-23 13:15 PT. "Into main" is git merge-tree against main 75670200750: the files that conflict.
Parts 2b, 3a and 4a each branch from main. The manager parts 4b–4e stack on all three and have no PR yet (dashed).
Parts 5–9b are planned on 4d/4e and are not rebuilt.

Part PR Scope Parent State Into main
1a #8821 id and mask helpers, mask writers without host sync main merged
1b #8824 PhysX tendon mask setters 1a merged
2b #8997 actuator networks: mask reset, MLP compute in Warp kernels and Warp-NN main clean at 4634d7863fa
3a #8856 SceneEntityCfg Warp selections, env origins as a ProxyArray main 1 file (test_frontend.py, from #9060)
4a #8998 recording utilities, lazy data correct under recording main 4 files (Newton backend, solver, rigid object; actuator_pd.py)
4b — ManagerBase, TermFrontend, observation manager on both frontends 2b, 3a, 4a local, 33 files +2241/−205 the base's 6 files (2b merged at e7c807e3226)
4c — reward, termination, curriculum, event, action, command, recorder managers on both frontends 4b local, 37 files +2580/−318 +1 file
4d — Warp frontend on the stable managers; experimental managers and env removed 4c local, 110 files +4327/−8784 +8 files, 5 of them also changed by MDP2 #9016
4e — device term parameters, Warp curriculum terms 4d local, 51 files +2263/−539 no new file
5 #8228 Rough velocity tasks on Warp, ray caster camera frames as a ProxyArray (titled 3b/8) 4d not rebuilt
6 — OVPhysX recorded Warp step 4d not opened —
7 #7012 --video on the Warp frontend 4d not rebuilt
8 — Warp noise model with an additive bias 4e not opened —
9a — Direct Warp env step 4d not opened —
9b #6582 Shadow Hand Warp twin, Allegro twin fix (titled 8b/8) 9a not rebuilt
📌 #8861 all parts combined for review (this PR) all —
---
config:
  look: neo
  flowchart:
    curve: basis
---
flowchart TD
  M(["main"])
  P1a("<b>#8821</b> · 1a<br/>id/mask helpers")
  P1b("<b>#8824</b> · 1b<br/>PhysX tendon masks")
  P2b("<b>#8997</b> · 2b<br/>actuator networks")
  P3a("<b>#8856</b> · 3a<br/>Warp selections, env origins")
  P4a("<b>#8998</b> · 4a<br/>recording utilities")
  P4b("4b<br/>ManagerBase, TermFrontend, observations")
  P4c("4c<br/>reward … recorder managers")
  P4d("4d<br/>Warp frontend on the stable managers")
  P4e("4e<br/>device term parameters")
  P5("<b>#8228</b> · 5<br/>Rough velocity")
  P6("6<br/>OVPhysX step")
  P7("<b>#7012</b> · 7<br/>--video")
  P8("8<br/>noise model")
  P9a("9a<br/>Direct env step")
  P9b("<b>#6582</b> · 9b<br/>Shadow twin")
  MDP2(["MDP2 #9016 on main"])
  P1a --> P1b
  P1a -- merged --> M
  P1b -- merged --> M
  M --> P2b
  M --> P3a
  M --> P4a
  P2b --> P4b
  P3a --> P4b
  P4a --> P4b
  P4b --> P4c
  P4c --> P4d
  P4d --> P4e
  P4d --> P5
  P4d --> P6
  P4d --> P7
  P4d --> P9a
  P4e --> P8
  P9a --> P9b
  MDP2 -. "5 conflicting files" .-> P4d
  classDef nopr stroke-dasharray: 5 4
  class P4b,P4c,P4d,P4e,P6,P8,P9a nopr
Loading

Description

Review vehicle only; do not merge. The table and graph above are the current plan. This branch is not rebuilt:
its head d2915e11362 (2026-10-27) holds the earlier 11-part composition.

Type of change

  • Documentation update (series reference; no change of its own)

Checklist

History

  • 2026-11-09: renumbered into 8 features.
  • 2026-11-16: 2b, 3a and 4a each branch from main; the manager parts became 4b–4e, the later parts 5–9b.
  • 2026-11-23: closed when the parts were split; reopened as a draft to hold the topology. Review Maps removed from the parts.

A mask-only Articulation.reset called ActuatorCollection.reset(None), which
cleared delay buffers, network history, and Newton-native actuator state for
every environment. Newton rigid objects and collections dropped the mask
before resetting their wrench composers, clearing every environment's
persistent wrench.

ActuatorCollection.reset now takes env_mask. Isaac Lab actuator models still
reset by index, so the collection converts the mask to indices once for all
groups, and skips the conversion when no group carries reset state. Native
actuator state resets from the mask through a new
ActuatorControl.reset_native_actuators_mask hook; Newton and OVPhysX pass the
mask to the Newton actuator adapter, and the base default converts to indices
so backends that only implement the index hook stay correct.
InteractiveSceneWarp.reset passed env_ids=None to deformable objects, surface
grippers, and sensors on a masked reset, so every environment's sensor state
was cleared on each partial reset, and it never reset cable objects.

Forward the mask to every entity family in the stable scene's order. Surface
grippers use their reset_mask method. Cable objects take env_mask like the
other scene assets, so the scene does not convert the mask for a reset that
holds no state.
RigidObjectCollection.write_body_*_to_sim_mask converted masks to indices
with torch.nonzero before delegating to the index writers, so the mask
writers synchronized the host and could not be captured in a CUDA graph,
although their docstrings name them as the graph-capable path. They now
launch masked kernels over the full environment-body grid, and body_ids
selections resolve to a mask through a preallocated scratch buffer.

BaseRayCaster.reset compacted a mask with nonzero before resampling drift.
A masked reset now resamples every environment and keeps the new values
where the mask is set; index and slice selections are unchanged.
isaac-sim#8079 added ObservationGroupCfg.history_order and taught the stable
observation manager to skip it as a group setting. The Warp manager's skip
list was not updated, so it parsed the field as a term and raised a
TypeError for every observation group, and no manager-based Warp
environment could be constructed.

Skip history_order like the other group settings. The Warp manager raises
NotImplementedError for any term with history, and history_order only
takes effect with history, so a time-ordered group cannot be silently
reordered wrong.
The fixed-tendon set_*_mask methods and
write_fixed_tendon_properties_to_sim_mask converted masks to indices with
torch.nonzero and delegated to the index writers, so they synchronized the
host and could not be captured in a CUDA graph.

Write the masked cells in-kernel instead: scalar and full data go into the
staging buffers through masked kernels, and the property writer copies the
masked cells of each staging buffer into its simulation binding. The mask
compaction helpers have no remaining callers and are removed.
A masked Articulation.reset on the Newton-native actuator path allocated a
per-DOF mask for every actuator on each call, and a masked ray-caster
reset sampled drift with torch ops and uploaded its ranges, so neither
could run inside a CUDA graph captured on Warp's stream.

NewtonActuatorAdapter preallocates its per-DOF reset masks. BaseRayCaster
resamples masked drift in a Warp kernel from per-environment random states
seeded from torch's global generator at initialization, with the ranges
passed as launch arguments; index and slice resets keep the torch path.
The Newton fixed-tendon position-target setters raised a host-side dirty
flag, and write_data_to_sim scattered the buffered targets into MuJoCo's
controls only while it was set. A setter recorded in a CUDA graph raised
the flag once, at capture time, so later replays updated the target buffer
on the device but never reached the solver.

Write the buffered targets on every step whenever the articulation has
tendon actuators, and drop the flag from the Newton setters. The write
costs about 60 us per call on Shadow Hand; gating it on a device-side flag
would need Newton's control-array mapping re-implemented in a kernel.
The Warp environment classes never wired the VideoRecorder hook, so
env_cfg.video_recorders was dropped: ManagerBasedEnvWarp logged a warning
and DirectRLEnvWarp ignored it.

Create the recorders before the simulation starts, advance them once per
step after rendering and outside the captured stages, and flush them on
close, mirroring DirectRLEnv, ManagerBasedEnv and ManagerBasedRLEnv.

The test builds both hierarchies through WarpFrontend.build_env, so the
scene is InteractiveSceneWarp, and runs kitless from a Newton
SimulationCfg. It steps fewer times than one clip, so the clip reaches
disk only through close() and its frame count pins one tick per step.
apply_video_recording rejected --video on any non-torch frontend because
the Warp environments did not drive recorders. They do now, so drop the
guard.

Make the visualizer pre_launch_video_config adds for --video without
--viz frontend-aware: a headless Kit visualizer on the torch frontend,
as before, and a headless Newton GL visualizer on the Warp frontend.
The Warp frontend always runs Newton physics and is commonly run
without the Isaac Sim install that Kit needs.

Update the Warp environments guide, which still said --video is
rejected, and the 3.0 migration guide, which described the Kit default
as unconditional.
A headless Newton GL visualizer declared in sim.visualizer_cfgs recorded
a single flat colour. Headless visualizers do not render continuously,
so is_rendering is False, and has_active_visualizers only sees --viz.
The Newton cloner therefore resolved load_visual_shapes to False and
built the model without the shapes the viewer draws.

This is the visualizer --video injects on the Warp frontend, so every
Warp recording without --viz was empty. The same config is empty on the
torch frontend; --viz newton_gl was unaffected.

Have each configured visualizer that draws the Newton model request the
visual shapes before cloning, the contract camera sensors already use.

Assert the Warp recording test's frames show the scene and change over
the clip; without the fix both cases fail with a flat frame.
Replace ManagerCallSwitch with an environment-owned WarpGraphCache that
follows the Newton core capture model: a stage is recorded through
NewtonQueries.capture_graph with no eager warm-up, so the first
execution is the launch of the new graph; recording starts at the first
step; graphs are keyed by the pointers and scalar values of the stage
arguments; and every graph is dropped when the physics backend rebinds
its buffers or stops, so the next step records against the new buffers.

Managers with a non-capturable term keep their stages eager through
register_capturability. ISAACLAB_WARP_CAPTURE=0 runs every stage
eagerly and ISAACLAB_SYNC_DEBUG=1 traps hidden host synchronizations in
eager stages. The direct environment uses the same cache in place of
capture_or_replay.
The manager-based Warp environments now reset through one mask-first
pipeline: every reset selection is copied into an environment-owned mask
that the recorded reset stages read, the scene and the Warp managers
reset from that mask, and the episode-length buffer is cleared by a
masked kernel. The mask is compacted to environment indices once per
reset, and only when a stable command, curriculum or recorder manager has
active terms. ManagerBasedEnvWarp.reset accepts env_mask.

Each step makes one host check to decide whether any environment
terminated: the index compaction when a manager needs indices, otherwise
reset_buf.any(). DirectRLEnvWarp moves its reset out of the end-of-step
graph into its own stage behind the same predicate.

A static gate pins the sanctioned host synchronizations of the mask-first
path, which also removes the device read from CircularBuffer.max_length.
The Episode_Termination metric keeps averaging over every environment,
as the stable manager does.
push_by_setting_velocity, apply_external_force_torque,
reset_root_state_uniform and randomize_rigid_body_com kept scratch
arrays and parsed ranges as attributes of the module-level function. The
first call allocated them, which inside a recorded stage becomes
graph-owned memory; the parsed ranges froze the first configuration; and
the state was shared by every environment in the process.

They are now ManagerTermBase classes that allocate in __init__ and read
their ranges on every call. randomize_rigid_body_com offsets the center of
mass it finds on its first call instead of accumulating, and
apply_external_force_torque with zero ranges leaves the permanent wrench
composer untouched.

The material and mass adapters reject modes other than startup and are
marked non-capturable. Startup terms no longer keep the event stages
eager, since they never run inside one, and set_term_cfg re-resolves the
term and drops the recorded event stages.
A manager with one non-capturable term used to run every stage eagerly.
Managers now describe each stage as ordered steps, one per term plus
their own setup and finalize kernels, and WarpGraphCache.call_steps
records each run of consecutive capturable steps into one graph while
the terms marked @WarpCapturable(False) run eagerly in place.

Reward and termination terms write their own output columns and the
finalize kernel combines the columns in a fixed order, so these stages
evaluate the capturable terms first and need at most one eager group.
Observation noise and events draw from the shared per-environment random
state, and action terms are applied in order, so those stages keep the
configured term order and split into contiguous runs.

Observation terms with history run as eager steps instead of raising
inside capture. Replacing a reward term rebuilds its steps and drops the
recorded reward stages.
A term can be capture-safe for one configuration and not another: a
reward that reads a ray-caster refreshes the sensor on the host and
launches its query graph, which cannot run inside a recorded stage,
while the same reward without a sensor can.

WarpCapturable accepts a predicate over the term's parameters, and its
guard raises only for the parameters the predicate rejects. The Warp
managers resolve capturability with each term's parameters, and a class
term may set _warp_capturable in __init__ to decide per instance. The
sync gate's opt-out inventory also lists predicate annotations.
Stable environments tell the physics backend their decimation and, when the
backend runs the whole decimation loop, apply actions, step the simulation and
update the scene once per environment step. The Warp environments still looped
once per physics step, so contact sensors sampled four times as often on Go2
and the contact history, air times and the rewards and terminations reading
them differed from the stable environment with the same configuration.

Mirror the stable loop in the manager-based and direct Warp environments. The
per-physics-step loop remains for backends that do not run the decimation loop.
The stable environments honor compute_final_obs: a step that resets
environments stores the observations from before the reset in
extras["final_obs"] and declares Same-Step autoreset in the metadata. The
Warp environments ignored the flag, so torchrl, which sets it, bootstrapped
time-outs from the post-reset observation.

Compute the observations before the reset stage and keep a copy, because the
reset overwrites the persistent observation buffers. Declare Same-Step
autoreset in both Warp environment classes.
Warp managers and tasks log persistent buffers that later steps overwrite.
Loggers such as the rsl_rl logger keep extras["log"] of every step and average
it at the end of an iteration, so every entry showed the latest value. The
stable environments log fresh tensors.

The manager-based environment copies the tensor values when it builds the
reset log. The direct environment keeps the log the task writes and returns a
copy of it from every step, so task code that is recorded into a CUDA graph
keeps refreshing its own buffers.
ManagerBasedEnvWarp built its reset log from the same persistent manager
buffers as the RL environment, so a logged value changed with the next reset.
Copy the tensor values like the RL environment does.
The shared Warp reorientation environment measured the orientation error
from the (y, z, w) components of the (x, y, z, w) quaternion difference, so
aligned orientations read as ~pi: its orientation reward, goal success, and
goal resampling diverged from the stable task. Its full observation also
read the object's [lin_vel, ang_vel] root velocity as [ang, lin].

Add a same-state parity test that recomputes the stable task's observations
and rewards from the twin's own state after every captured step.
Prepare the Warp reorientation environment for hands beyond Allegro:

- Evaluate the orientation error and goal success once per step in
  _get_dones and reuse them in the reward, as the stable task does,
  instead of recomputing the quaternion error in the reward kernel.
- Apply reset states through the assets' mask writers, which invalidate
  derived data and map public joint order onto the solver's, instead of
  writing the data buffers directly.
- Read the in-hand anchor and goal-marker position from the task cfg and
  command joints through the actuator target API.
- Log Metrics/success_rate on reset, matching the stable task.
- Reject asymmetric_obs configurations: this environment has no critic
  observations.
Isaac-Reorient-Cube-Shadow-Direct now runs under --frontend warp: the
stable ShadowHandDirectEnv entry point mirrors to ShadowHandDirectWarpEnv,
which extends the shared Warp reorientation environment the way the
stable task extends ReorientDirectEnv. The last four action columns
command the finger tendons through the articulation's tendon target
writer, unscaled to the configured range and clamped without smoothing.

The tendon command is issued in _pre_physics_step rather than in the
captured action stage: the articulation marks a buffered tendon target
for submission on the host, and a graph replay does not repeat that.

Tests extend the same-state parity check to the Shadow task and add a
tendon-response check and an assigned-episode-length partial-reset check.
Warp environments now build the experimental CommandManager and record its
compute and reset stages. The frontend swaps command term class_types for
their Warp twins (commands join WARP_MANAGED_GROUPS); the term configs stay
the stable ones.

Add Warp twins of UniformVelocityCommand, UniformPoseCommand and
NullCommand. The pose twin keeps the per-episode sticky success flag that
the pose_command_success termination writes, checks both the position and
the orientation thresholds, and logs Metrics/success_rate like the stable
term. The null twin never resamples, so its time_left stays finite.

The debug visualization of the stable velocity and pose commands moves into
private mixins shared with the twins, keeping marker_pos_offset and
environment_ids.

Warp reward and observation terms read the command through
CommandManager.get_command_wp on every call instead of caching the first
environment's buffer in a function attribute.
The Warp observation manager infers the output size of a ray-caster term
from the sensor's ray count, so height_scan needs no IO descriptor. The
Newton ray caster refreshes through host-side timestamps and scene
transforms, so height_scan is marked non-capturable and runs eagerly.

terrain_out_of_bounds reads the terrain bounds from the environment on
every call instead of caching the first environment's in function
attributes.

The rough velocity tasks keep the stable terrain curriculum and now adapt
under --frontend warp.
A term defined outside the mirrored packages has no twin. The frontend now
uses it unchanged when it is a Warp term: a class term that subclasses the
Warp ManagerTermBase, or a function term that declares its capture behavior
with WarpCapturable. Any other such term is reported as not a Warp term
instead of being replaced by an unrelated built-in twin of the same name.
Reading a Newton ray caster refreshes it on the host and launches its own
query graph, which fails inside a recorded reward stage: Go2 Rough stopped
at its first captured step with CUDA error 900. base_height_l2 now declares
itself capturable only without a sensor, so the reward stage records its
other terms and runs this one eagerly; Go2 Flat keeps it recorded.

The height-scanner case of the capture harness becomes an eager parity
test, since that configuration is never recorded.
A recorded stage keeps the scalars a term read while it recorded, so a
configuration change reaches a captured stage only through a setter that
drops the recorded graphs. The Warp termination and command managers gain
set_term_cfg and get_term_cfg that do so, matching the reward and event
managers.

The stable modify_term_cfg curriculum writes into a manager's term
configuration directly. After writing a value it now hands the term
configuration back to the manager's set_term_cfg when the manager has one,
which is a no-op for the stable managers and records the Warp stages again.

Capture-then-mutate tests cover a reward weight raised from zero, a replaced
termination threshold, and a command range changed by modify_term_cfg.
The migration guide describes the stable-config frontend, the command
terms, the author contract for recorded stages and Warp terms from other
packages. The environment overview lists the rough velocity tasks and the
stages that stay eager.
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Oct 28, 2026
@hujc7 hujc7 changed the title [DO-NOT-MERGE][Warp] Warp cleanup series: Parts 1-9 combined for review [DO-NOT-MERGE][Warp] Warp cleanup series: all parts combined for review Nov 2, 2026
hujc7 added a commit that referenced this pull request Nov 13, 2026
…rs (#8821)

## Review Map

- A number is one feature and its letters are that feature's PRs, in
merge order; an arrow points from a PR to the PRs that build on it.
- A stacked PR's page shows the cumulative diff of its dependency chain;
the "Exact changes" link opens that PR's Files changed page on its own
changes (parent head to PR head). #6646's head merges `main` for one
conflict, so its link also shows `main`'s #8928.
- #8783 and #6607 are no longer part of the series.

| PR | Status | Depends on | Exact changes |
|---|---|---|---|
| 📌 #8821 Part 1a/8: shared id and mask helpers, mask writers without
host sync |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8821?label=)
| — | — |
| #8824 Part 1b/8: PhysX tendon mask setters through the masks |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8824?label=)
| 1a |
[link](https://github.com/isaac-sim/IsaacLab/pull/8824/changes/84470f4c0c5dfe1905dd1b5d822f6faf50832d4d..2fbbcc5a98a91f34c129f1ce65b227201ec50f60)
|
| #6646 Part 2a/8: reset only the masked environments |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/6646?label=)
| 1a |
[link](https://github.com/isaac-sim/IsaacLab/pull/6646/changes/84470f4c0c5dfe1905dd1b5d822f6faf50832d4d..41ed0c0775175ad2f76db6bb9c31202d80e1519b)
|
| #8997 Part 2b/8: actuator networks reset by mask |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8997?label=)
| 2a |
[link](https://github.com/isaac-sim/IsaacLab/pull/8997/changes/41ed0c0775175ad2f76db6bb9c31202d80e1519b..cb14223b1d957f7fd8ac232ea50605618ce53de3)
|
| #8856 Part 3a/8: env origins as a ProxyArray, `SceneEntityCfg` Warp
selections |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8856?label=)
| 2a |
[link](https://github.com/isaac-sim/IsaacLab/pull/8856/changes/41ed0c0775175ad2f76db6bb9c31202d80e1519b..f8944ad680d2bb4b09b13d2adb4b740eafe7b363)
|
| #8228 Part 3b/8: ray caster camera frames as a ProxyArray, Rough
velocity tasks (re-cut not pushed yet) |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8228?label=)
| 3a | — |
| #8998 Part 4a/8: recording utilities, lazy buffers correct under
recording |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8998?label=)
| 2b, 3a |
[link](https://github.com/isaac-sim/IsaacLab/pull/8998/changes/9d74ad2de08a152312833dbe3ad9260b02f683b0..0e2a77d842051fb3946feb988f2e14d010aac3fb)
|
| Parts 4b-4h/8: the Warp frontend on the stable managers (not opened) |
— | 4a | — |
| Part 5/8: OVPhysX on the Warp frontend (not opened) | — | 4h | — |
| Part 6/8: Warp noise model with an additive bias (not opened) | — | 4h
| — |
| #7012 Part 7/8: `--video` on the Warp frontend (re-cut not pushed yet)
|
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/7012?label=)
| 4h | — |
| Part 8a/8: Direct Warp environment step (not opened) | — | 5, 7 | — |
| #6582 Part 8b/8: Shadow Hand Warp twin, Allegro twin fix (re-cut not
pushed yet) |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/6582?label=)
| 8a | — |
| #8861 [DO-NOT-MERGE] all parts combined for review |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8861?label=)
| ALL | — |

```mermaid
---
config:
  look: neo
  flowchart:
    curve: basis
---
flowchart TD
  A1("📌 <b>#8821</b> · 1a<br/>id/mask helpers")
  B1("<b>#8824</b> · 1b<br/>PhysX tendon masks")
  A2("<b>#6646</b> · 2a<br/>masked resets")
  B2("<b>#8997</b> · 2b<br/>actuator net reset")
  A3("<b>#8856</b> · 3a<br/>env origins, Warp selections")
  B3("<b>#8228</b> · 3b<br/>Rough velocity")
  A4("<b>#8998</b> · 4a<br/>recording utilities")
  P4("4b-4h<br/>Warp frontend on the stable managers")
  P5("5<br/>OVPhysX")
  P6("6<br/>noise model")
  P7("<b>#7012</b> · 7<br/>--video")
  A8("8a<br/>Direct env step")
  B8("<b>#6582</b> · 8b<br/>Shadow twin")
  A1 --> B1
  A1 --> A2
  A2 --> B2
  A2 --> A3
  A3 --> B3
  B2 --> A4
  A3 --> A4
  A4 --> P4
  P4 --> P5
  P4 --> P6
  P4 --> P7
  P5 --> A8
  P7 --> A8
  A8 --> B8
  style A1 stroke-width:3px
```

## Summary

Id and mask selections in the Newton, OVPhysX and PhysX assets, the
camera and the wrench composer resolve through main's `resolve_1d_mask`
and a new `resolve_ids`, both in `isaaclab.utils.warp.memory`, instead
of hand-written copies (−907 / +410 source lines). Newton mask writers
that converted masks to ids now write through the mask: the fixed-tendon
setters are 2.7-5.4x faster.

# Description

**Update (2026-11-12):** a Newton model-property write recorded into a
graph capture now refreshes the solver on every replay, not only the
first (`NewtonManager.add_model_change` records the refresh inside a
capture); merged main `616f517707d`.

**Update (2026-11-10):** a mask longer than its destination raises
instead of being written past the end (the Newton fixed-tendon writer
launches over the mask), and the PhysX and rigid-object selection
docstrings say ids come first, as `resolve_ids` does. The
`all_ids=slice(None)` form of `resolve_ids` leaves this PR for the part
that first uses it.

## 1. Changes

1. **Helpers** (`isaaclab/utils/warp/memory.py`, next to main's
`resolve_1d_mask`): new `resolve_ids` (ids or a boolean mask → ids on
the device of the caller's all-ids array; callers that need contiguous
int32 ids pass the result through main's `resolve_1d_indices`, as main's
indexed writers do). `resolve_1d_mask` takes `scratch_mask` as optional
again: a mask passed without one is used as given when it is not longer
than the destination, so a shorter mask writes only the rows it covers,
as main's Newton mask writers do; a longer mask raises with or without a
scratch mask. New `write_2d_with_mask` writes a scalar or a 2-D array
into a buffer where an env mask and an item mask are both true,
launching main's masked copy and fill kernels over the mask lengths on
the output's device (torch vector data with strided components goes
through scalar views, without a copy); the Newton articulation and
collection mask writers use it.
2. **All assets, `Camera` and `WrenchComposer` use them**, so every
selection accepts the same inputs: integer sequences, negative-step
slices, ids on another device. A `ProxyArray` raises `TypeError`.
3. **Newton writes without a host sync:** the fixed-tendon mask setters
write through the masks; joint-coordinate writes reuse a scratch mask.
The `RigidObjectCollection` mask writers (main's, since #8870) launch
over the mask lengths like the other Newton mask writers, so a mask
shorter than the asset dimension writes only the rows it covers.
4. **Fixes:** the deformable `write_nodal_*_to_sim_mask` writers raised
whenever `env_mask` was given (OVPhysX, PhysX); the Newton fixed-tendon
mask setters accepted data of the wrong shape; a Newton model-property
write recorded into a graph capture (such as the fixed-tendon mask
writer, now capturable) left the solver on the first replay's values,
because `NewtonManager.add_model_change` only queued the refresh on the
host.

## 2. Performance (MEASURED)

8gpu L40, Newton contract mocks, 4096 envs, host µs per call including
the GPU wait, main `299af193136` against this PR
at `b75b5a81585` (same source as the head but for main's #8971), 3
alternated runs per arm.

| Write | main | this PR | |
|---|---|---|---|
| Fixed-tendon stiffness mask, half envs, 2 tendons | 455 | 84 | 5.4x |
| Fixed-tendon position limit mask, all | 216 | 80 | 2.7x |
| Fixed-tendon position limit mask, half envs, 2 tendons | 393 | 84 |
4.7x |
| `write_fixed_tendon_properties_to_sim_mask`, all | 373 | 124 | 3.0x |
| `write_fixed_tendon_properties_to_sim_mask`, half envs, 2 tendons |
573 | 127 | 4.5x |
| Joint position index write, half envs | 290 | 249 | 1.17x |
| Joint state index write, half envs | 321 | 281 | 1.14x |
| Joint position mask write; collection pose and velocity mask writes |
| | within ±1% |

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Screenshots

Not applicable.

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
hujc7 added a commit that referenced this pull request Nov 15, 2026
…ks (#8824)

## Review Map

- A number is one feature and its letters are that feature's PRs, in
merge order; an arrow points from a PR to the PRs that build on it.
- A stacked PR's page shows the cumulative diff of its dependency chain;
the "Exact changes" link opens that PR's Files changed page on its own
changes (parent head to PR head).
- #8783 and #6607 are no longer part of the series.

| PR | Status | Depends on | Exact changes |
|---|---|---|---|
| #8821 Part 1a/8: shared id and mask helpers, mask writers without host
sync |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8821?label=)
| — | — |
| 📌 #8824 Part 1b/8: PhysX tendon mask setters through the masks |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8824?label=)
| 1a | — |
| #8997 Part 2b/8: actuator networks reset by mask |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8997?label=)
| 1a | — |
| #8856 Part 3a/8: env origins as a ProxyArray, `SceneEntityCfg` Warp
selections |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8856?label=)
| 2b |
[link](https://github.com/isaac-sim/IsaacLab/pull/8856/changes/1a3ef00daac107596034140a6a36633fec2a5f65..401b0191f04f6480c1ed03deffdd966f9f469009)
|
| #8228 Part 3b/8: ray caster camera frames as a ProxyArray, Rough
velocity tasks (re-cut not pushed yet) |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8228?label=)
| 3a | — |
| #8998 Part 4a/8: recording utilities, lazy buffers correct under
recording |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8998?label=)
| 3a |
[link](https://github.com/isaac-sim/IsaacLab/pull/8998/changes/9d74ad2de08a152312833dbe3ad9260b02f683b0..0e2a77d842051fb3946feb988f2e14d010aac3fb)
|
| Parts 4b-4h/8: the Warp frontend on the stable managers (not opened) |
— | 4a | — |
| Part 5/8: OVPhysX on the Warp frontend (not opened) | — | 4h | — |
| Part 6/8: Warp noise model with an additive bias (not opened) | — | 4h
| — |
| #7012 Part 7/8: `--video` on the Warp frontend (re-cut not pushed yet)
|
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/7012?label=)
| 4h | — |
| Part 8a/8: Direct Warp environment step (not opened) | — | 5, 7 | — |
| #6582 Part 8b/8: Shadow Hand Warp twin, Allegro twin fix (re-cut not
pushed yet) |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/6582?label=)
| 8a | — |
| #8861 [DO-NOT-MERGE] all parts combined for review |
![](https://img.shields.io/github/pulls/detail/state/isaac-sim/IsaacLab/8861?label=)
| ALL | — |

```mermaid
---
config:
  look: neo
  flowchart:
    curve: basis
---
flowchart TD
  A1("<b>#8821</b> · 1a<br/>id/mask helpers")
  B1("📌 <b>#8824</b> · 1b<br/>PhysX tendon masks")
  B2("<b>#8997</b> · 2b<br/>actuator net reset")
  A3("<b>#8856</b> · 3a<br/>env origins, Warp selections")
  B3("<b>#8228</b> · 3b<br/>Rough velocity")
  A4("<b>#8998</b> · 4a<br/>recording utilities")
  P4("4b-4h<br/>Warp frontend on the stable managers")
  P5("5<br/>OVPhysX")
  P6("6<br/>noise model")
  P7("<b>#7012</b> · 7<br/>--video")
  A8("8a<br/>Direct env step")
  B8("<b>#6582</b> · 8b<br/>Shadow twin")
  A1 --> B1
  A1 --> B2
  B2 --> A3
  A3 --> B3
  A3 --> A4
  A4 --> P4
  P4 --> P5
  P4 --> P6
  P4 --> P7
  P5 --> A8
  P7 --> A8
  A8 --> B8
  style B1 stroke-width:3px
```

## Summary

The 11 PhysX tendon `set_*_mask` setters no longer turn their masks into
ids with a GPU→host wait: they fill the tendon buffers through the
masks, 83-91 → 18.5 µs per call (5x) with half the environments
selected.

# Description

The setters only fill Isaac Lab's tendon buffers; the push to PhysX
stays index based in `write_*_tendon_properties_to_sim_*`. Each setter
now resolves its masks, checks the shape and launches a masked kernel,
as the Newton setters do.

- MEASURED (desk RTX PRO 6000, PhysX, 4096 envs, half selected): 5x for
stiffness, damping, limit stiffness, rest length and offset; 4.5x for
position limit and target; unchanged with all environments selected.
- No task calls these setters per step, so task FPS does not change.

## Type of change

- New feature (non-breaking change which adds functionality)

## Screenshots

Not applicable.

## Checklist

Docker and GPU tests run on demand. Push the commits you want tested,
then
comment `run-ci` on the pull request.

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`uv run isaaclab --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the [test-audit
criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md)
to any test changes
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump package versions — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
@hujc7 hujc7 closed this Nov 23, 2026
@hujc7 hujc7 reopened this Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant